//
//  BiNetEngine.h
//  TrunkIndustryManageSystem
//
//  Created by 李璐西 on 15-4-6.
//  Copyright (c) 2015年 李璐西. All rights reserved.
//


/**
 *  该类负责所有网络的请求
 */

// --------- 整车销售 ----------
#define NET_GET_CAR_SALE_CHECK_LIST               0x101   //行销列表
#define NET_GET_CAR_SALE_CONTRACT_LIST            0x102   //行销合同列表
#define NET_GET_XINGXIAO_APPLY_LIST               0x103     //行销申请保存

#define NET_GET_XINGXIAO_SALEAPPLY_CHECK          0x104     //行销申请审核

#define NET_GET_XINGXIAO_START_SALE               0x106   //开始行销
#define NET_GET_XINGXIAO_GETCUSTOMER_LIST         0x107   //获取客户信息列表
#define NET_GET_XINGXIAO_ADDCUSTOMER_INFO         0x108   //添加客户信息
#define NET_GET_XINGXIAO_END_SALE                  0x109   //结束行销
#define NET_GET_XINGXIAO_GPS_LIST                  0x110   //结束行销

#define NET_GET_XINGXIAO_CUSTOER_UPIMAGE1         0x111   //添加客户图片
#define NET_GET_XINGXIAO_CUSTOER_UPIMAGE2         0x112   //添加客户与车合影图片
#define NET_GET_XINGXIAO_CUSTOER_UPIMAGE3         0x113   //添加客户就餐图片



#define NET_GET_XINGXIAO_CONTRACT_CHECK         0x120   //销售合同（交接）完结审核
#define NET_GET_XINGXIAO_CONTRACT_SAVE         0x121   //销售合同（交接）完结保存
#define NET_GET_XINGXIAO_CONTRACT_UPIMAGEWPJJD         0x122  //添加销售合同图片
#define NET_GET_XINGXIAO_CONTRACT_UPIMAGECLJJD         0x123  //添加销售合同图片
#define NET_GET_XINGXIAO_CONTRACT_UPIMAGERCHY         0x124  //添加销售合同图片
#define NET_GET_XINGXIAO_CONTRACT_DEL_IMAGE         0x125  //删除销售合同图片
// --------- 整车采购 ----------

#define NET_GET_PURCHASE_ORDERCHECK_LIST          0x150   //采购订单审批列表
#define NET_GET_PURCHASE_ORDERREFIT_LIST          0x151   //采购改装上线列表
#define NET_GET_PURCHASE_ORDERYANSHOU_LIST        0x152   //采购验收入库列表
#define NET_GET_PURCHASE_ORDER_CHECK              0x153   //采购订单审核
#define NET_GET_PURCHASE_SPPLIER_LIST             0x154   //改装厂列表
#define NET_GET_PURCHASE_CONTRACT_LIST            0x155   //绑定合同列表
#define NET_GET_PURCHASE_REFIT_CHECK              0x156   //改装上线审核
#define NET_GET_PURCHASE_REFIT_SAVE               0x157   //改装上线保存
#define NET_GET_PURCHASE_CARRUKU_CHECK             0x158   //验证入库保存
#define NET_GET_PURCHASE_CARRUKU_SAVE             0x159   //验证入库审核

#define NET_GET_PURCHASE_REFIT_CONTRACT_IMAGE     0x160   //改装上线绑定合同照片
#define NET_GET_PURCHASE_YANSHOU_IMAGE     0x162   //上传验收入库照片

#define NET_GET_PURCHASE_STOREROOM_LIST             0x161   //验证入库库房列表
#define NET_GET_PURCHASE_REFIT_IMAGEDEL             0x163   //改装上线图片删除
//#define NET_GET_PURCHASE_YANSHOU_IMAGEDEL             0x164   //验证入库图片删除

// --------- 整车拆装 ----------
#define NET_GET_DISMOUNT_MOUNT_LIST                0x170   //整车拆装(完结)列表
#define NET_GET_DISMOUNT_MOUNT_CHECK                0x171   //整车拆装(完结)审核

// --------- 借车 -------------
#define NET_GET_CAR_BORROW_CHECK_LIST             0x180   //借车审批列表
#define NET_GET_CAR_BORROW_CHECK                  0x181   //借车审批审核
#define NET_GET_CAR_RETURN_CHECK_LIST             0x182   //还车审批列表
#define NET_GET_CAR_RETURN_CHECK                  0x183   //还车审批审核

// --------- 整车变更 ----------
#define NET_GET_CAR_MODIFY_LIST                     0x190   //车辆变更列表
#define NET_GET_CAR_MODIFY_SAVE                     0x191   //车辆变更保存
#define NET_GET_CAR_MODIFY_IMAGESAVE                0x192   //车辆变更图片上传
#define NET_GET_CAR_MODIFY_IMAGEDEL                 0x193   //车辆变更图片删除

// --------- 牌证 ----------
#define NET_GET_CAR_DOCU_LIST                     0x200   //列表
#define NET_GET_CAR_DOC_CHECK                     0x201   //审核驳回
#define NET_GET_CAR_DOC_IMAGESAVE                0x202   //图片上传
#define NET_GET_CAR_DOC_IMAGEDEL                 0x203   //图片删除

// --------- 登陆 -------------
#define NET_LOG                                    0x003




@protocol BiNetEngineDelegate
- (void)onNetEngineResponse:(int)tag entity:(id)entity userInfo:(NSDictionary *)userInfo;
- (void)onNetEngineResponseFail:(int)tag entity:(id)entity userInfo:(NSDictionary *)userInfo;
@end

@interface BiNetEngine : NSObject
{
}

SINGLE_INSTANCE_DECLARE(BiNetEngine)

#pragma -mark 整车销售
// ---------------  整车销售  start  ---------------
- (void)requestCarSaleCheckList:(id)delegate paraDict:(NSDictionary *)patadict;
//行销申请／合同交接列表
- (void)requestCarSaleContracAssoList:(id)delegate paraDict:(NSDictionary *)patadict;
//行销申请保存
- (void)requestSaleApplySave:(id)delegate paraDict:(NSDictionary *)dict;

//行销申请审核
- (void)requestSaleApplyCheck:(id)delegate paraDict:(NSDictionary *)dict;

//行销执行－>开始行销
- (void)requestSaleStart:(id)delegate paraDict:(NSDictionary *)dict;

//行销执行－>结束行销
- (void)requestSaleEnd:(id)delegate paraDic:(NSDictionary *)paradic;

//行销执行－>获取客户信息列表
- (void)requestSaleGetCustomerList:(id)delegate paraDict:(NSDictionary *)dict;

//行销执行－>添加客户信息
- (void)requestSaleAddCustomerInfo:(id)delegate paraArr:(NSArray *)Arr;

//行销执行－>gps信息
- (void)requestSaleGetGPSInfo:(id)delegate paraDict:(NSDictionary *)dict;


//行销合同交接保存
- (void)requestSaleContractAssocSave:(id)delegate paraDict:(NSDictionary *)dict;

//行销合同交接审核
- (void)requestSaleContractAssocCheck:(id)delegate paraDict:(NSDictionary *)dict;

//行销添加客户信息图片
- (void)requestSaleCuntomerImageCusT:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic;
- (void)requestSaleCuntomerImageCusTCar:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic;
- (void)requestSaleCuntomerImageCusTEat:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic;

//行销添加合同信息图片
- (void)requestSaleContractImageWPJJD:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic;
- (void)requestSaleContractImageCLJJD:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic;
- (void)requestSaleContractImageRCHY:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic;
//行销删除合同信息图片
- (void)requestSaleContractImageDel:(id)delegate  paraDic:(NSDictionary *)paraDic;
// ---------------  整车销售   end   ---------------

#pragma -mark 整车采购
// ---------------  整车采购  start  ---------------
//－>获取采购订单审批列表
- (void)requestPurchaseGetOrderCheckList:(id)delegate paraDict:(NSDictionary *)dict;

//－>获取采购改装上线列表
- (void)requestPurchaseGetOrderRefitList:(id)delegate paraDict:(NSDictionary *)dict;

//－>获取采购验收入库列表
- (void)requestPurchaseGetOrderYanshouList:(id)delegate paraDict:(NSDictionary *)dict;

//  获取采购订单审核
- (void)requestPurchaseOrderCheck:(id)delegate paraDict:(NSDictionary *)dict;

//  获取改装厂列表
- (void)requestPurchaseSppliserList:(id)delegate paraDict:(NSDictionary *)dict;

//  获取绑定合同列表
- (void)requestPurchaseContractList:(id)delegate paraDict:(NSDictionary *)dict;

//  获取改装上线审核
- (void)requestPurchaseRefitCheck:(id)delegate paraDict:(NSDictionary *)dict;

//  获取改装上线保存
- (void)requestPurchaseRefitSave:(id)delegate paraDict:(NSDictionary *)dict;

//获取改装上线保存信息图片
- (void)requestPurchaseRefitImage:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic;

/**
 *   ///  获取验收入库图片上传，dict为传入参数字典，image为上传的图片
 */
- (void)requestPurchaseYanshouImage:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic;


//  获取验收入库审核
- (void)requestPurchaseCarRukuCheck:(id)delegate paraDict:(NSDictionary *)dict;

//  获取验收入库保存
- (void)requestPurchaseCarRukuSave:(id)delegate paraDict:(NSDictionary *)dict;

/**
 *   //  获取库房，dict为传入参数字典
 */
- (void)requestPurchaseStoreRoomList:(id)delegate paraDict:(NSDictionary *)dict;

//删除改装上线合同图片
- (void)requestPuchaseRefitImageDel:(id)delegate  paraDic:(NSDictionary *)paraDic;
// ---------------  整车采购   end   ---------------

#pragma -mark 整车拆装
// ---------------  整车拆装  start  ---------------
//  获取整车拆装（完结）列表
- (void)requestDismountCarList:(id)delegate paraDict:(NSDictionary *)dict;

//  获取整车拆装（完结）审核
- (void)requestDismountCarCheck:(id)delegate paraDict:(NSDictionary *)dict;

// ---------------  整车拆装   end   ---------------


#pragma -mark 整车变更
// ---------------  整车变更  start  ---------------
//  请求变更列表， 下拉刷新请求更多，dict为传入参数字典
- (void)requestCarModifyGetList:(id)delegate paraDict:(NSDictionary *)dict;

//  请求合格证交付保存， dict为传入参数字典
- (void)requestCarModifySaveCertificate:(id)delegate paraDict:(NSDictionary *)dict;

//  请求上传领条， dict为传入参数字典

- (void)requestCarModifyImage:(id)delegate withImge:(UIImage *)image paraDict:(NSDictionary *)paraDic;

//  请求delete领条， dict为传入参数字典

- (void)requestModifyImageDelete:(id)delegate  paraDict:(NSDictionary *)paraDic;
// ---------------  整车变更   end   ---------------


#pragma -mark 整车牌证
// ---------------  牌证  start  ---------------
////  请求牌证列表， dict为传入参数字典
- (void)requestDocmengList:(id)delegate paraDict:(NSDictionary *)dict;
//开缴款单审核
- (void)requestDocBillCheck:(id)delegate paraDict:(NSDictionary *)dict;
//牌证信息
- (void)requestDocInfoManageCheck:(id)delegate paraDict:(NSDictionary *)dict;
//信息上传
- (void)requestDocInfoUploadCheck:(id)delegate paraDict:(NSDictionary *)dict;
//信息保存
- (void)requestDocInfoSave:(id)delegate paraDict:(NSDictionary *)dict;
//拍照信息 审批（批准 驳回）
- (void)requestDocInfoCheck:(id)delegate paraDict:(NSDictionary *)dict;
// --------------- 牌证   end   ---------------


#pragma -mark 登陆
//----------------  登陆 ------------
-(void)requestLogin:(id) delegte  userName:(NSString *)username passWord:(NSString *) pwd;


#pragma -mark 整车借车
// ---------------  整车借车  start  ---------------
//－>获取借车审批列表
- (void)requestBorrowCarCheckList:(id)delegate paraDict:(NSDictionary *)dict;
//－>获取借车审核
-(void)requestBorrowCarCheck:(id)delegate paraDict:(NSDictionary *)dict;
//－>获取还车审批列表
- (void)requestCarReturnCheckList:(id)delegate paraDict:(NSDictionary *)dict;
//－>获取还车审核
-(void)requestCarReturnCheck:(id)delegate paraDict:(NSDictionary *)dict;
//－>获取还车审批驳回

// ---------------  整车还车   end   ---------------
@end
